Use gdk_window_get_origin() instead of gdk_window_get_position, because
authorOwen Taylor <otaylor@redhat.com>
Fri, 11 Dec 1998 01:44:12 +0000 (01:44 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 11 Dec 1998 01:44:12 +0000 (01:44 +0000)
Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
gdk_window_get_origin() instead of gdk_window_get_position,
because get_position is unreliable for plugs.

This is a bad hack, maybe we need GDK_WINDOW_PLUG?

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
config.h.in
gtk/gtkdnd.c

index d8de67a1b66fb04c4f459f7a30c351daa77d1ca3..8720fbb2d1d991b337bb6d613f3102f9459b6377 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use 
+       gdk_window_get_origin() instead of gdk_window_get_position,
+       because get_position is unreliable for plugs. 
+
+       This is a bad hack, maybe we need GDK_WINDOW_PLUG?
+
 Thu Dec 10 17:58:49 GMT 1998  Tony Gale  <gale@gtk.org>
 
        * docs/gtk_tut.sgml:
index d8de67a1b66fb04c4f459f7a30c351daa77d1ca3..8720fbb2d1d991b337bb6d613f3102f9459b6377 100644 (file)
@@ -1,3 +1,11 @@
+Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use 
+       gdk_window_get_origin() instead of gdk_window_get_position,
+       because get_position is unreliable for plugs. 
+
+       This is a bad hack, maybe we need GDK_WINDOW_PLUG?
+
 Thu Dec 10 17:58:49 GMT 1998  Tony Gale  <gale@gtk.org>
 
        * docs/gtk_tut.sgml:
index d8de67a1b66fb04c4f459f7a30c351daa77d1ca3..8720fbb2d1d991b337bb6d613f3102f9459b6377 100644 (file)
@@ -1,3 +1,11 @@
+Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use 
+       gdk_window_get_origin() instead of gdk_window_get_position,
+       because get_position is unreliable for plugs. 
+
+       This is a bad hack, maybe we need GDK_WINDOW_PLUG?
+
 Thu Dec 10 17:58:49 GMT 1998  Tony Gale  <gale@gtk.org>
 
        * docs/gtk_tut.sgml:
index d8de67a1b66fb04c4f459f7a30c351daa77d1ca3..8720fbb2d1d991b337bb6d613f3102f9459b6377 100644 (file)
@@ -1,3 +1,11 @@
+Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use 
+       gdk_window_get_origin() instead of gdk_window_get_position,
+       because get_position is unreliable for plugs. 
+
+       This is a bad hack, maybe we need GDK_WINDOW_PLUG?
+
 Thu Dec 10 17:58:49 GMT 1998  Tony Gale  <gale@gtk.org>
 
        * docs/gtk_tut.sgml:
index d8de67a1b66fb04c4f459f7a30c351daa77d1ca3..8720fbb2d1d991b337bb6d613f3102f9459b6377 100644 (file)
@@ -1,3 +1,11 @@
+Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use 
+       gdk_window_get_origin() instead of gdk_window_get_position,
+       because get_position is unreliable for plugs. 
+
+       This is a bad hack, maybe we need GDK_WINDOW_PLUG?
+
 Thu Dec 10 17:58:49 GMT 1998  Tony Gale  <gale@gtk.org>
 
        * docs/gtk_tut.sgml:
index d8de67a1b66fb04c4f459f7a30c351daa77d1ca3..8720fbb2d1d991b337bb6d613f3102f9459b6377 100644 (file)
@@ -1,3 +1,11 @@
+Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use 
+       gdk_window_get_origin() instead of gdk_window_get_position,
+       because get_position is unreliable for plugs. 
+
+       This is a bad hack, maybe we need GDK_WINDOW_PLUG?
+
 Thu Dec 10 17:58:49 GMT 1998  Tony Gale  <gale@gtk.org>
 
        * docs/gtk_tut.sgml:
index d8de67a1b66fb04c4f459f7a30c351daa77d1ca3..8720fbb2d1d991b337bb6d613f3102f9459b6377 100644 (file)
@@ -1,3 +1,11 @@
+Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use 
+       gdk_window_get_origin() instead of gdk_window_get_position,
+       because get_position is unreliable for plugs. 
+
+       This is a bad hack, maybe we need GDK_WINDOW_PLUG?
+
 Thu Dec 10 17:58:49 GMT 1998  Tony Gale  <gale@gtk.org>
 
        * docs/gtk_tut.sgml:
index 364037f42ad521f65930db60c2e6fd146fd1a17d..03bb8ec8bab8816f446e12d6feeed7bbc50c4122 100644 (file)
@@ -59,6 +59,3 @@
 
 /* Define if you have the <wctype.h> header file.  */
 #undef HAVE_WCTYPE_H
-
-/* Define if you have the X11 library (-lX11).  */
-#undef HAVE_LIBX11
index 052c671b7559bfc36dce7d158e4cbfa5628f8eb9..2794f94e5caa540ba6558d5759d3048754bf2826 100644 (file)
@@ -864,7 +864,7 @@ gtk_drag_dest_handle_event (GtkWidget *toplevel,
        if (event->type == GDK_DROP_START)
          info->dropped = TRUE;
 
-       gdk_window_get_position (toplevel->window, &tx, &ty);
+       gdk_window_get_origin (toplevel->window, &tx, &ty);
 
        data.x = event->dnd.x_root - tx;
        data.y = event->dnd.y_root - ty;